package com.yanqu.road.entity.log;

import com.alibaba.fastjson.JSON;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;
import java.util.List;

@FieldTypeAnnotation(tableName = "t_l_ck_activity_silkroad_refloat", autoSave = true,uploadCk = true,desc = "南海丝路-打捞")
public class LogSilkRoadRefloat extends ServerBaseLog{

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "海域")
    private int seaType;
    @FieldTypeAnnotation(desc = "打捞到的物品id")
    private String seaItemList;
    @FieldTypeAnnotation(desc = "随机到的博物id")
    private String reflictList;
    @FieldTypeAnnotation(desc = "最新的总博物点")
    private int achievePoint;
    @FieldTypeAnnotation(desc = "是否一键打捞")
    private int isOneKey;


    public LogSilkRoadRefloat(int activityId, long userId, int seaType, List<Integer> seaItemIdList, List<Integer> reflictList, int achievePoint, boolean isOneKey) {
        this.activityId = activityId;
        this.userId = userId;
        this.seaType = seaType;
        this.seaItemList = JSON.toJSONString(seaItemIdList);
        this.reflictList = JSON.toJSONString(reflictList);
        this.achievePoint = achievePoint;
        this.isOneKey = isOneKey ? 1 : 0;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getSeaType() {
        return seaType;
    }

    public void setSeaType(int seaType) {
        this.seaType = seaType;
    }

    public String getSeaItemList() {
        return seaItemList;
    }

    public void setSeaItemList(String seaItemList) {
        this.seaItemList = seaItemList;
    }

    public int getIsOneKey() {
        return isOneKey;
    }

    public void setIsOneKey(int isOneKey) {
        this.isOneKey = isOneKey;
    }

    public String getReflictList() {
        return reflictList;
    }

    public void setReflictList(String reflictList) {
        this.reflictList = reflictList;
    }

    public int getAchievePoint() {
        return achievePoint;
    }

    public void setAchievePoint(int achievePoint) {
        this.achievePoint = achievePoint;
    }
}
